package com.ruoyi.qywx.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * @author : hcl
 * @Date : 2023/8/2
 * 员工活码
 */
@Data
@TableName("qy_contact_way")
public class ContactWayEntity {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField(updateStrategy = FieldStrategy.NEVER)
    private Long teamId;
    private Long groupId;
    private String title;
    private Integer type;
    private String users;
    private Boolean skipVerify;
    private String remark;
    private String dyRemark;
    @TableField(updateStrategy = FieldStrategy.NEVER)
    private String state;
    private Long welcomeId;
    private String qrcodeUrl;
    private Boolean isDelete;
    private String tags;
    private int scene;
    private int style;
    @TableField(fill = FieldFill.INSERT)
    private Long creator;
    //  是否开启引导入群
    private Boolean guideJoin;
    private String des;
    private String unfriendDesc;
    private String iconUrl;
    private String configId;
    @TableField(fill = FieldFill.DEFAULT)
    private Date createTime;
    @TableField(fill = FieldFill.DEFAULT)
    private Date modifyTime;

    public ContactWayEntity update() {
        ContactWayEntity qrcode = new ContactWayEntity();
        qrcode.id = this.id;
        qrcode.title = this.title;
        qrcode.users = this.users;
        qrcode.remark = this.remark;
        qrcode.dyRemark = this.dyRemark;
        qrcode.groupId = this.groupId;
        qrcode.iconUrl = this.iconUrl;
        qrcode.welcomeId = this.welcomeId;
        qrcode.tags = this.tags;
        return qrcode;
    }
}
